package MyHeap;

public interface Operations {
    //初始化数组
    public abstract void initElem(int[] array);

    //创建堆
    public void creatHeap();

    //向下调整
    public abstract void siftDown(int parent, int child);

    //添加元素
    public abstract void offer(int val);

    //向上调整
    public abstract void siftUp(int child);

    //取出堆顶元素
    public abstract int poll();

    //获取堆顶元素
    public abstract int peek();
}
